<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <h1></h1>
        <span></span>
    </div>
    <script>
        //模板字符串
        let title="欢迎使用"
        let span='朝鲜韩国要打仗了'
        let price=5000;
        // let html='<div>'+'<h1>'+title+'</h1>'+'<span>'+span+'</span>'+'</div>';
        let html=`<div>
        <h1 js=${price}>${title}</h1>
        <span>${span}</span>
        </div>`
        console.log(html);
    </script>
</body>
</html>